package com.example.demo;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;

import java.io.IOException;

public class HTTPGETActivity extends AppCompatActivity {

    private TextView HttpGet_Restext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_httpget);
        HttpGet_Restext = findViewById(R.id.HttpGet_text);
        Intent intent = getIntent();
        String phone = intent.getStringExtra("CONTENT");
        Log.e("HTTPGETActivity",phone);
        setTitle("通过HttpGet获得到的信息");
        HttpGet_Restext.setText(phone);






    }


}
